package com.pingan.haofang.searchcloud.monitor.dto;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author ZHAOSHENGWEI866
 * @date 2018-10-18
 */
@ApiModel(description = "API视图响应体")
public class DashboardApiSummaryInfoQueryResult {

    @ApiModelProperty("项目名称id")
    private Long projectId;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("索引ID")
    private Long indexId;

    @ApiModelProperty("索引名称")
    private String indexName;

    @ApiModelProperty("调用次数")
    private Integer requestNum;

    @ApiModelProperty("平响")
    private Integer avgResponseTime;

    @ApiModelProperty("最大响应时间")
    private Integer maxResponseTime;

    @ApiModelProperty("索引数量")
    private Integer indexCount;


//    @ApiModelProperty("5xx次数")
//    private Long errorCount;
//
//    @ApiModelProperty("4xx次数")
//    private Long badRequestCount;

    /*@ApiModelProperty("成功率")
    private Double successRate;*/

    @ApiModelProperty("100ms一下次数(百分比%)")
    private Double level1Rate;

    @ApiModelProperty("100-1000ms次数(百分比%)")
    private Double level2Rate;

    @ApiModelProperty("1000-3000ms次数(百分比%)")
    private Double level3Rate;

    @ApiModelProperty("3000ms以上次数(百分比%)")
    private Double level4Rate;

    @ApiModelProperty("100ms一下次数")
    private Integer level1Count;

    @ApiModelProperty("100-1000ms次数")
    private Integer level2Count;

    @ApiModelProperty("1000-3000ms次数")
    private Integer level3Count;

    @ApiModelProperty("3000ms以上次数")
    private Integer level4Count;

    @ApiModelProperty("数据日期")
    private Date dataDate;

    public Long getIndexId() {
        return indexId;
    }

    public void setIndexId(Long indexId) {
        this.indexId = indexId;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public Date getDataDate() {
        return dataDate;
    }

    public void setDataDate(Date dataDate) {
        this.dataDate = dataDate;
    }

    public Integer getIndexCount() {
        return indexCount;
    }

    public void setIndexCount(Integer indexCount) {
        this.indexCount = indexCount;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public Integer getRequestNum() {
        return requestNum;
    }

    public void setRequestNum(Integer requestNum) {
        this.requestNum = requestNum;
    }

    public Integer getAvgResponseTime() {
        return avgResponseTime;
    }

    public void setAvgResponseTime(Integer avgResponseTime) {
        this.avgResponseTime = avgResponseTime;
    }

    public Integer getMaxResponseTime() {
        return maxResponseTime;
    }

    public void setMaxResponseTime(Integer maxResponseTime) {
        this.maxResponseTime = maxResponseTime;
    }

    public Double getLevel1Rate() {
        return level1Rate;
    }

    public void setLevel1Rate(Double level1Rate) {
        this.level1Rate = level1Rate;
    }

    public Double getLevel2Rate() {
        return level2Rate;
    }

    public void setLevel2Rate(Double level2Rate) {
        this.level2Rate = level2Rate;
    }

    public Double getLevel3Rate() {
        return level3Rate;
    }

    public void setLevel3Rate(Double level3Rate) {
        this.level3Rate = level3Rate;
    }

    public Double getLevel4Rate() {
        return level4Rate;
    }

    public void setLevel4Rate(Double level4Rate) {
        this.level4Rate = level4Rate;
    }

    public Integer getLevel1Count() {
        return level1Count;
    }

    public void setLevel1Count(Integer level1Count) {
        this.level1Count = level1Count;
    }

    public Integer getLevel2Count() {
        return level2Count;
    }

    public void setLevel2Count(Integer level2Count) {
        this.level2Count = level2Count;
    }

    public Integer getLevel3Count() {
        return level3Count;
    }

    public void setLevel3Count(Integer level3Count) {
        this.level3Count = level3Count;
    }

    public Integer getLevel4Count() {
        return level4Count;
    }

    public void setLevel4Count(Integer level4Count) {
        this.level4Count = level4Count;
    }
}
